cmake_minimum_required(VERSION 3.20)

project(test_library)

# 第三方库安装目录 
# set(CMAKE_PREFIX_PATH "D:/temp/AMath-0.1.1")
# set(AMath_DIR "D:/temp/AMath-0.1.1/lib/cmake/AMath")

# 默认安装到C:/Program Files (x86)时不需要set
find_package(AMath REQUIRED)

add_executable(test main.cpp)
# 链接库
target_link_libraries(test PRIVATE AMath)